package fake

import org.joda.time.*
import org.jadira.usertype.dateandtime.joda.*

class Item {
    String name
    Integer qty
    BigDecimal price
    LocalDateTime time = new LocalDateTime()
    LocalDate date = new LocalDate()

    static constraints = {
        name(blank:false)
        qty(nullable:true)
        price(nullable:true)
        date(nullable:true)
        time(nullable:true)
    }
}